package com.cw.jeeyt.service.elasticsearch;

import java.util.Iterator;
import java.util.List;

import org.springframework.data.domain.Page;

import com.cw.jeeyt.service.bo.elasticsearch.ElasticDocDto;

public interface IElasticService {

    void createIndex();

    void deleteIndex(String index);

    void save(ElasticDocDto ElasticDocDto);

    void saveAll(List<ElasticDocDto> list);

    Iterator<ElasticDocDto> findAll();

    Page<ElasticDocDto> findByContent(String content);

    Page<ElasticDocDto> findByFirstCode(String firstCode);

    Page<ElasticDocDto> findBySecordCode(String secordCode);

    Page<ElasticDocDto> query(String key);
}
